import 'package:lx_widgets_library/extension/enum_ex.dart';

enum LanguageType {
  cn(0),
  en(1);

  final int rawValue;
  const LanguageType(this.rawValue);
  // 通过 rawValue 获取枚举类型
  static LanguageType? getTypeByNum(int rawValue) => LanguageType.values
      .firstWhereOrNull((activity) => activity.rawValue == rawValue);
}
